package com.hxzy.shop.dto.mapstruct;

import com.hxzy.shop.dto.auth.resp.MerchantInfoResp;
import com.hxzy.shop.entity.Merchant;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 使用MapStruct
 *
 * @author tonneyyy
 */
@Mapper
public interface MerchantConvert {
    MerchantConvert INSTANCE= Mappers.getMapper(MerchantConvert.class);

    /**
     * 实体类转Resp
     * @param entity
     * @return
     */
    MerchantInfoResp toMerchantInfoResp(Merchant entity);
}
